package com.moliku.insurance.model.entity.ChongQing;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import java.util.ArrayList;

//Below annotation defines root element of XML file
@XmlRootElement
//You can define order in which elements will be created in XML file
//Optional
@XmlType(propOrder = { "generalInfo","policyInfos"})
public class Country {

    private GeneralInfo generalInfo;


    private ArrayList<PolicyInfo> policyInfos;
    public Country() {

    }

    public ArrayList<PolicyInfo> getPolicyInfos() {
        return policyInfos;
    }

    @XmlElementWrapper(name = "PolicyInfos")
    @XmlElement(name = "PolicyInfo")
    public void setPolicyInfos(ArrayList<PolicyInfo> policyInfos) {
        this.policyInfos = policyInfos;
    }

    public GeneralInfo getGeneralInfo() {
        return generalInfo;
    }

    @XmlElement
    public void setGeneralInfo(GeneralInfo generalInfo) {
        this.generalInfo = generalInfo;
    }




}